// Copyright (c) 2025 The Msp Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdint.h>

namespace msp{

enum ValueType : uint8_t {
    TYPE_NULL     = 0,  // 空值 [0]
    TYPE_BOOL     = 1,  // 布尔值 [1]
    TYPE_CHAR     = 2,  // 1字节字符 [1]
    TYPE_INT8     = 3,  // 1字节整数 [1]
    TYPE_INT16    = 4,  // 2字节整数 [2]
    TYPE_INT32    = 5,  // 4字节整数 [4]
    TYPE_INT64    = 6,  // 8字节整数 [8]
    TYPE_FLOAT    = 7,  // 单精度浮点 [4]
    TYPE_DOUBLE   = 8,  // 双精度浮点 [8]
    TYPE_STRING   = 9,  // 字符串 [4]+[N]
    TYPE_BYTES    = 10, // 二进制数据 [4]+[N]
    TYPE_DATETIME = 11, // 日期&时间 [8]+[8]
    TYPE_OBJECT   = 12, // 对象  [4]+[N]
};

}